package Meetings;

/**
 * 会议室实体类
 * 
 * @author ywh
 * @since 2025-03-03
 */
public class MeetingRoom {
    private String name;// 实体类中的属性必须是private的
    private int capacity;// 会议室容量
    private boolean hasMedia;// isXXX --> 状态位 hasXXX --> 具备

    public MeetingRoom(String name, int capacity, boolean hasMedia) {
        this.name = name;
        this.capacity = capacity;
        this.hasMedia = hasMedia;
    }

    @Override
    public String toString() {
        return "MeetingRoom{" +
                "name='" + name + '\'' +
                ",capacity=" + capacity +
                ", hasMedia=" + (hasMedia ? "有" : "无") + "}";
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public int getCapacity() {
        return this.capacity;
    }

    public void setName(boolean hasMedia) {
        this.hasMedia = hasMedia;
    }

    public boolean gethasMedia() {
        return this.hasMedia;
    }

}
